/*
 * Copyright (c) 2013 WDCY Information Technology Co. Ltd
 * www.wdcy.cc
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * WDCY Information Technology Co. Ltd ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you
 * entered into with WDCY Information Technology Co. Ltd.
 */
package com.andaily.zhishifenzi.domain.match;

import com.andaily.zhishifenzi.domain.shared.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 14-3-9 上午10:47
 *
 * @author Shengzhao Li
 */
public interface SeasonRepository extends Repository {

    Season findByGuid(String guid);

    void saveSeason(Season season);

    void updateSeason(Season season);

    List<Season> findListSeasons(Map<String, Object> map);

    int totalListSeasons(Map<String, Object> map);

    void archiveSeasonMatches(Season season);

    List<Season> findAllSeasons();

    List<Season> findBeforeSeasons(Date date);
}
